Skip to content

fix(Sqlite): Removed deprecated exec method and moved Session import to migrateFromGlobal function#9268

Closed
OpeOginni wants to merge 12 commits intoanomalyco:sqlitefrom
OpeOginni:sqlite
Closed

fix(Sqlite): Removed deprecated exec method and moved Session import to migrateFromGlobal function#9268
OpeOginni wants to merge 12 commits intoanomalyco:sqlitefrom
OpeOginni:sqlite

Conversation

@OpeOginni
Copy link
Contributor

What does this PR do?

  1. Removed remaining deprecated sqlite.exec -> sqlite.run

  2. Moved Sessions import to be dynamic when used by the migrateFromGlobal fixes the ReferenceError: Cannot access 'Instance' before initialization. that comes when trying to start the TUI.

  3. Update generate-migrations.ts script to make the import statement to get migrations from the right path "migrations" not "drizzle".

How did you verify your code works?

I was able to properly run the TUI on the branch and the migration ran and local DB created.

The autogenerated migrations file pointed to the right migration sql and the DB was properly migrated.

Screenshot 2026-01-18 at 17 13 39

@github-actions
Copy link
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@OpeOginni OpeOginni marked this pull request as draft January 18, 2026 17:54
@thdxr thdxr force-pushed the sqlite branch 2 times, most recently from 173892a to fcd5ff7 Compare January 24, 2026 05:05
@OpeOginni OpeOginni closed this Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants